package com.demo.di.event;

import org.springframework.context.ApplicationListener;

/**
 * 描述：
 *
 * @author lida
 * @time 2019/10/15 15:19
 */
public class MessageEventListener implements ApplicationListener<MessageEvent> {
	@Override
	public void onApplicationEvent(MessageEvent event) {
		MessageEvent msgEvt = event;
		System.out.println("Received : " + msgEvt.getMsg());
	}
}
